// 个人样本库
import request from '@/http'
import config from '@/http/config'

const apiSample = `${config.account.ip}/sampleBank/sample`
const apiBank = `${config.account.ip}/sampleBank/bank`
const apiIndexing = `${config.account.ip}/sampleBank/indexing`

// 添加样本
export const smpleAdd = (data) => request.post(`${apiSample}/add`, data )
// 新建样本库
export const bankAdd = (data) => request.post(`${apiBank}/add`, data)
// 获取样本库列表
export const bankList = (data) => request.get(`${apiBank}/list`,data)
// 删除样本库
export const bankDel = (data) => request.post(`${apiBank}/del`,  data )
// 编辑样本库
export const bankEdit = (data) => request.post(`${apiBank}/edit`,  data )
// 获取样本库基本信息
export const bankInfo = (data) => request.get(`${apiBank}/info`,  data )
// 编辑标引
export const indexEdit = (data) => request.post(`${apiIndexing}/edit`,  data )
// 添加标引
export const indexAdd = (data) => request.post(`${apiIndexing}/add`,  data )
// 删除标引
export const indexDel = (data) => request.post(`${apiIndexing}/del`, data )
// 获取样本列表
export const sampleList = (data) => request.post(`${apiSample}/list`,  data )
// 删除样本
export const sampleDel = (data) => request.post(`${apiSample}/del`,  data )
// 获取样本信息
export const sampleInfo = (data) => request.post(`${apiSample}/info`, { data })
// 添加标引内容
export const indexAddContent = (data) => request.post(`${apiIndexing}/addContent`, { data })
// 标引列表
export const indexList = (data) => request.get(`${apiIndexing}/list`, { data })
// 导出样本
export const smpleExport = (data) => request.post(`${apiSample}/export`, { data })
// 分析
export const bankAnalysis = (data) => request.get(`${apiBank}/analysis`, { data })
